package cn.exrick.xboot.base.vo

import com.fasterxml.jackson.annotation.JsonFormat
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import org.springframework.format.annotation.DateTimeFormat
import java.util.*

@ApiModel("消息列表")
data class MessageListVo (

        var id: String? = null,

        @ApiModelProperty("发送者姓名")
        var sendUsername: String? = null,

        @ApiModelProperty("信息类型 1.企业消息 2.其他消息")
        var type: Int? = null,

        @ApiModelProperty("发送者头像")
        var sendUserAvatar: String? = null,

        @ApiModelProperty("发送标题")
        var sendTitle: String? = null,

        @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @ApiModelProperty(value = "创建时间", hidden = true)
         var createTime: Date? = null
)